Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
修复卸载插件时插件信息缓存没有清除的问题。会导致卸载后,新安装的插件无法运行。
要解决的问题 Describe the problem to be solved
1.卸载插件时插件信息缓存没有完全清除(需要清除2个key: 插件名的key、包名的key, 现在只清除了插件名的key),会导致卸载后,新安装的插件无法运行(无法运行的原因请查看 com.qihoo360.loader2.PmBase#putPluginObject, 当缓存没有完全清空时,会走if 中的逻辑,并且最终不会执行mPlugins.put(xxxx),导致新安装的插件信息无法写入 mPlugins里 )。